home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / puppy_red.swf / scripts / DefineSprite_350 / frame_22 / PlaceObject2_345_60 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-03-11  |  584b  |  27 lines

  1. onClipEvent(enterFrame){
  2.    if(!_global.betting)
  3.    {
  4.       if(getTimer() - timer1 >= 5000 && !this._visible)
  5.       {
  6.          this._visible = 1;
  7.          timer2 = getTimer();
  8.       }
  9.       if(this._visible)
  10.       {
  11.          if(getTimer() - timer2 >= 1000)
  12.          {
  13.             if(this._currentframe < 6)
  14.             {
  15.                this.nextFrame();
  16.                timer2 = getTimer();
  17.             }
  18.             else
  19.             {
  20.                _global.betting = 1;
  21.                _parent.gotoAndPlay("timeOut");
  22.             }
  23.          }
  24.       }
  25.    }
  26. }
  27.